<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ include file="/system/include/taglib.jsp"%>
<html>
<head>
<base href="${pageScope.basePath }">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>中山市美斯特实业有限公司</title>
<link type="text/css" rel="stylesheet" href="system/css/style.css" />
<script type="text/javascript" language="javascript" src="system/js/public.js"></script>
<script type="text/javascript" language="javascript" src="system/js/DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="system/js/jquery-1.4.2.js"></script>
<script type="text/javascript" src="system/js/validate.js"></script>
<script type="text/javascript" language="javascript">
$(function(){
	if($("#ztMc").val()!="正常使用"){
		alert("该车船登记信息登记状态已为不可使用！");
	};
});
function checkForm(){	
	var dateValue=validateValueIsNull("#date");
	if(dateValue){
		after_effect("#date","日期不能为空，请填写！");
		return false;
	}
}
function after_effect(idName,message_tip){
	var object=$(idName);
	var message="<span style='color: red'>"+message_tip+"</span>";
	object.next().remove();
	object.after(message);			
}

</script>
</head>
<body>
<div class="main">
	<div class="position">当前位置: <a href="sysadm/desktop.jsp">桌 面</a> → 车船注销</div>
	<div class="mainbody">
		<div class="operate_info">操作说明：带 * 号必填</div>
		<div class="table">
			<form action="system/book/car_cancel.do" method="post" onsubmit="return checkForm()">
				<input type="hidden" name="ccdjh" value="${param.ccdjh}">
				<mytag:View name="Ccdjxx" table="com.zhongkai.model.book.TDjCcdjxx" id="${param.ccdjh}" ></mytag:View>
				<logic:notEmpty name="Ccdjxx">										
				<table width="100%" border="0" cellpadding="1" cellspacing="1" class="table_form">
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >车船牌照号码</td>
					    <td >
					      <input  type="text"  value="${Ccdjxx.ccpzh}" disabled="disabled"/>
					    </td>
					    <td >车船类型</td>
					    <mytag:View  name="Jjcclx" table="com.zhongkai.model.book.TDmCcsJjcclx" id="${Ccdjxx.jjcclxDm }" entityStringId="true"></mytag:View>
					    <td >
					      <input  type="text"  value="${Jjcclx.jjcclxMc }" disabled="disabled"/>
					    </td>
					  </tr>
					 <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >车主名称</td>
					    <td >
					      <input  type="text"   value="${Ccdjxx.czMc}" disabled="disabled"/>
					    </td>
					     <td >登记状态</td>					     
					    <td >
					    <c:if test="${Ccdjxx.djztDm!=''}">
					    <mytag:View name="djzt" table="com.zhongkai.model.book.TDmCcsDjzt" id="${Ccdjxx.djztDm }" entityStringId="true"></mytag:View>					    
					  	<input  type="text" id="ztMc"  value="${djzt.djztMc}" disabled="disabled"/>	
					  	</c:if>	
					  	<c:if test="${Ccdjxx.djztDm==null}">
					  	<input  type="text" id="ztMc"  value="" disabled="disabled"/>	
					  	</c:if>				    
					    </td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >电话</td>
					    <td >
					      <input  type="text" value="${Ccdjxx.czDh}" disabled="disabled"/>
					    </td>
					    <td >身份证号码</td>
					    <td >
					      <input  type="text" value="${Ccdjxx.sfzhm}" disabled="disabled"/>
					    </td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >地址</td>
					    <td ><input  type="text"   value="${Ccdjxx.czDz}" disabled="disabled"/></td>
					    <td >整备质量（吨）</td>
					    <td ><input  type="text"   value="${Ccdjxx.zbzl}" disabled="disabled"/></td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td>发动机号</td>
					    <td >
					      <input  type="text"  value="${Ccdjxx.fdjh}" disabled="disabled"/>
					    </td>
					    <td  >车架号</td>
					    <td >
					      <input  type="text" value="${Ccdjxx.cjh}" disabled="disabled"/>
					    </td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >厂牌型号</td>
					    <td ><input  type="text"  value="${Ccdjxx.cpxh}" disabled="disabled"/></td>
					    <td  >购置时间</td>
					    <td  ><input  type="text"  value="${Ccdjxx.gzRq}" disabled="disabled"/></td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >核定载重量（吨）</td>
					    <td ><input type="text" value="${Ccdjxx.hdzzl}" disabled="disabled"/></td>
					    <td >核定载客（人）</td>
					    <td ><input type="text"   value="${Ccdjxx.hdzkl}" disabled="disabled"/></td>					    
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >登记日期</td>
					    <td ><input  type="text"  value="${Ccdjxx.djRq}" disabled="disabled"/></td>
					    <td >行驶证发证日期</td>
					    <td ><input  type="text"  value="${Ccdjxx.fzRq}" disabled="disabled"/></td>
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >应税起始日期</td>
					    <td ><input  type="text" value="${Ccdjxx.sbqsny}" disabled="disabled"/></td>
					    <td >排气量（升）</td>
					    <td ><input  type="text"  value="${Ccdjxx.pql}" disabled="disabled"/></td>
					  </tr>
				  
					 <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >注销原因：</td>
					    <td >
					    <c:if test="${Ccdjxx.djztDm=='01'}"><%--01代表登记状态：正常使用 --%>
					        <input type="radio" name="zxyyDm" value="01" checked="checked"/>报废					        
					        <input type="radio" name="zxyyDm" value="02" />被盗抢					    
					        <input type="radio" name="zxyyDm" value="03" />灭失
					        <input type="radio" name="zxyyMc" value="恢复" disabled="disabled" /><s style="color: gray">恢复</s>	
					     </c:if> 
					    <c:if test="${Ccdjxx.djztDm=='09'}"><%--09代表登记状态：已注销 --%>
					    	<input type="radio"  disabled="disabled" /><s style="color: gray">报废</s>				        
					        <input type="radio"  disabled="disabled" /><s style="color: gray">被盗抢	</s>					    
					        <input type="radio" disabled="disabled" /><s style="color: gray;">灭失</s>						        
						   <input type="radio" name="zxyyMc" value="恢复" checked="checked"/>恢复
					   </c:if>						        
					        					        
					     </td>
					    <td >注销/恢复时间：</td>
					    <td ><input name="zxRq_or_zxhfRq" id="date" type="text"   onfocus="new WdatePicker(this,'%Y-%M-%D',false,'default')"/></td>	
					    				  
					  </tr>
					  
					  <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td >备注:</td>
					    <td colspan="3"><textarea name="bz"  cols="50" rows="3"></textarea></td>
					  </tr>
					  
					 <tr onMouseOver="mouseOver(this)" onMouseOut="mouseOut(this)">
					    <td height="30" colspan="4" class="form_button" style="padding-top:10px;">
					      <div align="center">
					      
					        <c:if test="${djzt.djztMc=='正常使用'}"> 
						        <input type="submit"  value="注销" />&nbsp;&nbsp;
						        <input type="submit"  value="恢复" disabled="disabled"/>&nbsp;&nbsp;					        
					        </c:if>	

					        <c:if test="${djzt.djztMc=='已注销'}"> 
					           <input type="submit"  value="注销" disabled="disabled"/>&nbsp;&nbsp;					        
						        <input type="submit"  value="恢复" />&nbsp;&nbsp;
					        </c:if>	
					        				       					          
					        <input type="button"  value="返回" onClick="location.href='${pageScope.basePath }system/search/unisearch.jsp?module=book/car_cancel_form.jsp'" />
					        </div>
					    </td>
					  </tr>
				</table>
				</logic:notEmpty>					
			
			</form>
		</div>
	</div>
</div>
</body>
</html>
